﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true"
    CodeBehind="Product.aspx.cs" Inherits="TimKen.Web.Product" %>

<%@ Register Src="UserControls/ProductResources.ascx" TagName="ProductResources"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Common/Style/common.css" rel="stylesheet" type="text/css" />
    <link href="Common/Style/PagerStyle.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $(".nav_li").hover(function () {//鼠标放上去时候的效果
                $(this).children("a").addClass("navon"); //鼠标放上去的加上高亮
                $(this).children("div").show(); //鼠标放上去的二级栏目出来
                $(this).siblings().children("a").removeClass("navon"); //其他的高亮取消
                $(".common_search_tk").css("position", "static");
                $(".common_search_tkicon").hide();
            }, function () {//鼠标移开时候的效果
                $(this).children("a").removeClass("navon"); //鼠标移开去掉高亮
                $(this).children("div").hide(); //鼠标移开隐藏二级栏目
                $(".common_search_tk").css("position", "relative");
                $(".common_search_tkicon").show();
                $(".nav_li:eq(2)").children("a").addClass("navon"); //回到当前栏目高亮
            });
        }); 
        $(document).ready(function () {
            $(".nav_li:eq(2)").children("a").addClass("navon").parent().siblings().children("a").removeClass();
            $(".left_nav ul li:eq(0)").children("a").addClass("left_navon"); //左侧导航，当前栏目高亮	
        });
        window.onload = function () { for (var ii = 0; ii < document.links.length; ii++) document.links[ii].onfocus = function () { this.blur() } }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    <uc1:ProductResources ID="ProductResources1" runat="server" />
    <%--<div class="left_nav">
        <ul>
            <li><a href="Product.aspx">产品搜索</a></li>
            <li><a href="Resource.aspx">资料下载</a></li>
            <li><a href="#">成功案例</a></li>
            <li><a href="PromotionProducts.aspx">促销产品</a></li>
        </ul>
    </div>--%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
    <form id="myForm" runat="server">
    <%--   <asp:ScriptManager runat="server">
                        </asp:ScriptManager>
                        <asp:UpdatePanel runat="server">
                         <ContentTemplate>--%>
    <div class="common_searvh_result common_border">
        <p>
            <%=GetLangString("SearchCondition") %>：<span runat="server" id="span_searchCondition"><code>Timken</code>&nbsp;+&nbsp;<code>轴承</code></span></p>
        <p>
            <%=GetLangString("SearchResult") %>：<span runat="server" id="span_typespan"></span>（<span
                runat="server" id="span_sizespan"></span>）</p>
    </div>
    <div class="cpfl_weizhi common_border" runat="server" id="divdh">
</div>
    <div class="company_news common_border">
        <ul class="search_result_box">
            <asp:Repeater ID="MyRepeater" runat="server" OnItemCommand="MyRepeater_ItemCommand">
                <ItemTemplate>
                    <div class="search_result_div">
                        <ul class="search_resultL">
                            <a href='ProductInfo.aspx?ProductID=<%#Eval("ProductID")%>'>
                                <img src="<%#GetProductImage(int.Parse(Eval("ProductID").ToString())) %>" width="150"
                                    height="140" alt="" /></a>
                        </ul>
                        <ul class="search_resultR">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td colspan="3" style="line-height:18px;">
                                        <%#GetLangString("Description")%>：<%#checkStr(GetSubString(Eval("Description").ToString(),100,150,LanguageID))%></td>
                                </tr>
                                <tr>
                                    <td width="115">
                                        <%#GetLangString("BrandName")%>：<%#Eval("BrandName")%></td>
                                    <td width="140">
                                        <%#GetLangString("ItemCode")%>：<%#Eval("ItemCode")%></td>
                                    <td width="245">
                                        <%#GetLangString("ProductName")%>：<%#Eval("Name")%></td>
                                </tr>
                                <tr>
                                    <td>
                                        <%#GetLangString("Weight")%>：<%#Eval("Weight")%><%#Eval("WeightUnit").ToString().ToUpper()%></td>
                                    <td>
                                        <%#GetLangString("MinMultiple")%>：<%#Eval("MinMultiple")%></td>
                                    <td>
                                        <%#GetLangString("MinNumber")%>：<%#Eval("MinNumber")%></td>
                                </tr>
                                <tr>
                                    <td>
                                        <%#GetLangString("ShipDays")%>：<%#Eval("ShipDays")%></td>
                                    <td colspan="2">
                                        <%=GetLangString("BasicPrice") %>： <span>
                                            <%#GetProductBasePrice(int.Parse(Eval("ProductID").ToString())).Price.Equals(0)?GetLangString("Price0Desc"):GetProductBasePrice(int.Parse(Eval("ProductID").ToString())).Price.ToString()+GetProductBasePrice(int.Parse(Eval("ProductID").ToString())).Currency%>
                                        </span><span class="search_resultRH">(<%=GetLangString("NoTax") %>)</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <code><a href='ProductInfo.aspx?ProductID=<%#Eval("ProductID")%>&CategoryID=<%#Eval("CategoryID")%>'>
                                            <%#GetLangString("DetailInfo")%>&gt;&gt;</a></code>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <%=GetLangString("ShowIvq")%>：<%# SetInventoryString(DataBinder.Eval(Container.DataItem, "InvQty"))%></td>
                                    <td colspan="2">
                                        <%=GetLangString("ShopNumber")%>： 
                                        <asp:TextBox ID="txtNumber" Width="55px" onkeydown="return testKeyEven(event);" runat="server" class="search_resultRin"></asp:TextBox>
                                        <a href="#">
                                            <asp:ImageButton ID="btnAddToShoppingCart" runat="server" ToolTip='<%#GetLangString("AddToShoppingCart")%>'
                                                CommandName="AddToShoppingCart" CommandArgument='<%#Eval("ProductID")%>' ImageUrl='<%#LanguageID==1?"Common/Image/iconbtnbg/gwc_btn.gif":"Common/Image/iconbtnbg_en/gwc_btn.gif"%>' />
                                        </a><a href="#">
                                            <asp:ImageButton ID="btFavorite" runat="server" CommandArgument='<%# Eval("ProductID") %>'
                                                CommandName="Favorite" ToolTip='<%#GetLangString("AddToFavorite") %>' ImageUrl='<%#LanguageID==1?"Common/Image/common/search_sc.gif":"Common/Image/iconbtnbg_en/search_btn.gif"%>' />
                                        </a>
                                    </td>
                                </tr>
                            </table>
                        </ul>
                    </div>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
        <span class="protitle8" style="padding-left: 10px">
            <asp:Literal runat="server" ID="ltEmptyData" Visible="false"></asp:Literal>
        </span>
        <table cellpadding="0" cellspacing="0" align="center" width="99%" class="border">
            <tr>
                <td>
                    <%--<ux:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
                        runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageSize="5"
                        PrevPageText="上一页" OnPageChanged="AspNetPager1_PageChanged" ShowCustomInfoSection="Left"
                        ShowNavigationToolTip="true" CustomInfoTextAlign="Left" LayoutType="Table" 
                        CustomInfoHTML="">
                    </ux:AspNetPager>--%>
                    <ux:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
                        runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PageSize="10"
                        PrevPageText="上一页" ShowCustomInfoSection="Left" ShowNavigationToolTip="true"
                        OnPageChanged="AspNetPager1_PageChanged" CustomInfoTextAlign="Left" LayoutType="Table"
                        CustomInfoHTML="" CustomInfoSectionWidth="">
                    </ux:AspNetPager>
                </td>
            </tr>
        </table>
    </div>
    <%--    </ContentTemplate>
                        </asp:UpdatePanel>--%>
    </form>
</asp:Content>
